import AbilityStage from '@ohos.app.ability.AbilityStage';

export default class AppletAbilityStage extends AbilityStage {
  onCreate() {
    // 应用的HAP在首次加载的时，为该Module初始化操作
  }

  onAcceptWant(want): string {
    if (want.abilityName === 'AppletAbility') {
      // 返回的字符串Key标识为自定义拼接的字符串内容
      return `ControlModule_AppletAbilityInstance_${want.parameters.request.apiServer}_${want.parameters.request.appId}`;
    }

    return '';
  }
}